package com.bdqn.ch03.JD.impl;

import com.bdqn.ch03.JD.ActionFactory;
import com.bdqn.ch03.JD.ActionService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * ActionLoginFactoryImpl
 *
 * @aurhor Administrator  whs
 * @since 2024/7/8
 */
public class ActionLoginFactoryImpl implements ActionFactory {
    private static ActionService actionService = (ActionService) new ActionLoginServiceImpl();
    @Override
    public void getAction(HttpServletRequest request, HttpServletResponse response) throws Exception {
        request.setCharacterEncoding("UTF-8");
        actionService.execute(request,response);
    }
}
